win-pvdrivers

view mingw/mingw_extras.h @ 379:8c83b0ebcb05

move bit ops to mingw_extras since now xenvbd and evtchn.c are using them. no longer inline but shouldn't matter, eh?
author Andy Grover <andy.grover@oracle.com>
date Wed Jul 09 12:32:12 2008 -0700 (2008-07-09)
parents aceae9864ad8
children 8e10579159a0
line source
1 #include <stdio.h>
3 NTSTATUS bit_scan_forward(unsigned long *index, unsigned long mask);
4 int synch_set_bit(int nr, volatile long * addr);
5 int synch_clear_bit(int nr, volatile long * addr);
7 /* windows wchar 2 bytes, Linux's is 4! */
8 typedef unsigned short win_wchar_t;
10 NTSTATUS
11 RtlStringCbPrintfW(
12 win_wchar_t *dest_str,
13 size_t dest_size,
14 win_wchar_t *format,
15 ...);