low level code for digitalWrite ??

Can someone tell me where the low level source code for digitalWrite is?

I've done a file search in all files in the installed IDE files, but can only find the prototype for this in Arduino.h

void digitalWrite(uint8_t, uint8_t);

Is it in a pre-compiled library ?

I'm asking because I'm working on a port of Arduino to STM32 (done originally by LeafLabs) and I'm trying to improve the performance of digitalWrite as its used for bit banged I2C which is going slower than I need

On my 1.0.4 installation on a Mac, it's in wiring_digital.c

Yes it's in C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_digital.c

Thanks guys,

I see it now.

I'm not sure why my text editor (Notepad++) didnt find it during the initial search I did

Cheers

Roger