Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

821 lines
28 KiB

  1. /************************************************************************************************************************************\
  2. |* *|
  3. |* Copyright 2012 NVIDIA Corporation. All rights reserved. *|
  4. |* *|
  5. |* NOTICE TO USER: *|
  6. |* *|
  7. |* This software is subject to NVIDIA ownership rights under U.S. and international Copyright laws. *|
  8. |* *|
  9. |* This software and the information contained herein are PROPRIETARY and CONFIDENTIAL to NVIDIA *|
  10. |* and are being provided solely under the terms and conditions of an NVIDIA software license agreement. *|
  11. |* Otherwise, you have no rights to use or access this software in any manner. *|
  12. |* *|
  13. |* If not covered by the applicable NVIDIA software license agreement: *|
  14. |* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. *|
  15. |* IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. *|
  16. |* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *|
  17. |* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. *|
  18. |* IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, *|
  19. |* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, *|
  20. |* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. *|
  21. |* *|
  22. |* U.S. Government End Users. *|
  23. |* This software is a "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT 1995), *|
  24. |* consisting of "commercial computer software" and "commercial computer software documentation" *|
  25. |* as such terms are used in 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government only as a commercial end item. *|
  26. |* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
  27. |* all U.S. Government End Users acquire the software with only those rights set forth herein. *|
  28. |* *|
  29. |* Any use of this software in individual and commercial software must include, *|
  30. |* in the user documentation and internal comments to the code, *|
  31. |* the above Disclaimer (as applicable) and U.S. Government End Users Notice. *|
  32. |* *|
  33. \************************************************************************************************************************************/
  34. // ====================================================
  35. // SAL related support
  36. // ====================================================
  37. #ifndef __ecount
  38. #define __nvapi_undef__ecount
  39. #define __ecount(size)
  40. #endif
  41. #ifndef __bcount
  42. #define __nvapi_undef__bcount
  43. #define __bcount(size)
  44. #endif
  45. #ifndef __in
  46. #define __nvapi_undef__in
  47. #define __in
  48. #endif
  49. #ifndef __in_ecount
  50. #define __nvapi_undef__in_ecount
  51. #define __in_ecount(size)
  52. #endif
  53. #ifndef __in_bcount
  54. #define __nvapi_undef__in_bcount
  55. #define __in_bcount(size)
  56. #endif
  57. #ifndef __in_z
  58. #define __nvapi_undef__in_z
  59. #define __in_z
  60. #endif
  61. #ifndef __in_ecount_z
  62. #define __nvapi_undef__in_ecount_z
  63. #define __in_ecount_z(size)
  64. #endif
  65. #ifndef __in_bcount_z
  66. #define __nvapi_undef__in_bcount_z
  67. #define __in_bcount_z(size)
  68. #endif
  69. #ifndef __in_nz
  70. #define __nvapi_undef__in_nz
  71. #define __in_nz
  72. #endif
  73. #ifndef __in_ecount_nz
  74. #define __nvapi_undef__in_ecount_nz
  75. #define __in_ecount_nz(size)
  76. #endif
  77. #ifndef __in_bcount_nz
  78. #define __nvapi_undef__in_bcount_nz
  79. #define __in_bcount_nz(size)
  80. #endif
  81. #ifndef __out
  82. #define __nvapi_undef__out
  83. #define __out
  84. #endif
  85. #ifndef __out_ecount
  86. #define __nvapi_undef__out_ecount
  87. #define __out_ecount(size)
  88. #endif
  89. #ifndef __out_bcount
  90. #define __nvapi_undef__out_bcount
  91. #define __out_bcount(size)
  92. #endif
  93. #ifndef __out_ecount_part
  94. #define __nvapi_undef__out_ecount_part
  95. #define __out_ecount_part(size,length)
  96. #endif
  97. #ifndef __out_bcount_part
  98. #define __nvapi_undef__out_bcount_part
  99. #define __out_bcount_part(size,length)
  100. #endif
  101. #ifndef __out_ecount_full
  102. #define __nvapi_undef__out_ecount_full
  103. #define __out_ecount_full(size)
  104. #endif
  105. #ifndef __out_bcount_full
  106. #define __nvapi_undef__out_bcount_full
  107. #define __out_bcount_full(size)
  108. #endif
  109. #ifndef __out_z
  110. #define __nvapi_undef__out_z
  111. #define __out_z
  112. #endif
  113. #ifndef __out_z_opt
  114. #define __nvapi_undef__out_z_opt
  115. #define __out_z_opt
  116. #endif
  117. #ifndef __out_ecount_z
  118. #define __nvapi_undef__out_ecount_z
  119. #define __out_ecount_z(size)
  120. #endif
  121. #ifndef __out_bcount_z
  122. #define __nvapi_undef__out_bcount_z
  123. #define __out_bcount_z(size)
  124. #endif
  125. #ifndef __out_ecount_part_z
  126. #define __nvapi_undef__out_ecount_part_z
  127. #define __out_ecount_part_z(size,length)
  128. #endif
  129. #ifndef __out_bcount_part_z
  130. #define __nvapi_undef__out_bcount_part_z
  131. #define __out_bcount_part_z(size,length)
  132. #endif
  133. #ifndef __out_ecount_full_z
  134. #define __nvapi_undef__out_ecount_full_z
  135. #define __out_ecount_full_z(size)
  136. #endif
  137. #ifndef __out_bcount_full_z
  138. #define __nvapi_undef__out_bcount_full_z
  139. #define __out_bcount_full_z(size)
  140. #endif
  141. #ifndef __out_nz
  142. #define __nvapi_undef__out_nz
  143. #define __out_nz
  144. #endif
  145. #ifndef __out_nz_opt
  146. #define __nvapi_undef__out_nz_opt
  147. #define __out_nz_opt
  148. #endif
  149. #ifndef __out_ecount_nz
  150. #define __nvapi_undef__out_ecount_nz
  151. #define __out_ecount_nz(size)
  152. #endif
  153. #ifndef __out_bcount_nz
  154. #define __nvapi_undef__out_bcount_nz
  155. #define __out_bcount_nz(size)
  156. #endif
  157. #ifndef __inout
  158. #define __nvapi_undef__inout
  159. #define __inout
  160. #endif
  161. #ifndef __inout_ecount
  162. #define __nvapi_undef__inout_ecount
  163. #define __inout_ecount(size)
  164. #endif
  165. #ifndef __inout_bcount
  166. #define __nvapi_undef__inout_bcount
  167. #define __inout_bcount(size)
  168. #endif
  169. #ifndef __inout_ecount_part
  170. #define __nvapi_undef__inout_ecount_part
  171. #define __inout_ecount_part(size,length)
  172. #endif
  173. #ifndef __inout_bcount_part
  174. #define __nvapi_undef__inout_bcount_part
  175. #define __inout_bcount_part(size,length)
  176. #endif
  177. #ifndef __inout_ecount_full
  178. #define __nvapi_undef__inout_ecount_full
  179. #define __inout_ecount_full(size)
  180. #endif
  181. #ifndef __inout_bcount_full
  182. #define __nvapi_undef__inout_bcount_full
  183. #define __inout_bcount_full(size)
  184. #endif
  185. #ifndef __inout_z
  186. #define __nvapi_undef__inout_z
  187. #define __inout_z
  188. #endif
  189. #ifndef __inout_ecount_z
  190. #define __nvapi_undef__inout_ecount_z
  191. #define __inout_ecount_z(size)
  192. #endif
  193. #ifndef __inout_bcount_z
  194. #define __nvapi_undef__inout_bcount_z
  195. #define __inout_bcount_z(size)
  196. #endif
  197. #ifndef __inout_nz
  198. #define __nvapi_undef__inout_nz
  199. #define __inout_nz
  200. #endif
  201. #ifndef __inout_ecount_nz
  202. #define __nvapi_undef__inout_ecount_nz
  203. #define __inout_ecount_nz(size)
  204. #endif
  205. #ifndef __inout_bcount_nz
  206. #define __nvapi_undef__inout_bcount_nz
  207. #define __inout_bcount_nz(size)
  208. #endif
  209. #ifndef __ecount_opt
  210. #define __nvapi_undef__ecount_opt
  211. #define __ecount_opt(size)
  212. #endif
  213. #ifndef __bcount_opt
  214. #define __nvapi_undef__bcount_opt
  215. #define __bcount_opt(size)
  216. #endif
  217. #ifndef __in_opt
  218. #define __nvapi_undef__in_opt
  219. #define __in_opt
  220. #endif
  221. #ifndef __in_ecount_opt
  222. #define __nvapi_undef__in_ecount_opt
  223. #define __in_ecount_opt(size)
  224. #endif
  225. #ifndef __in_bcount_opt
  226. #define __nvapi_undef__in_bcount_opt
  227. #define __in_bcount_opt(size)
  228. #endif
  229. #ifndef __in_z_opt
  230. #define __nvapi_undef__in_z_opt
  231. #define __in_z_opt
  232. #endif
  233. #ifndef __in_ecount_z_opt
  234. #define __nvapi_undef__in_ecount_z_opt
  235. #define __in_ecount_z_opt(size)
  236. #endif
  237. #ifndef __in_bcount_z_opt
  238. #define __nvapi_undef__in_bcount_z_opt
  239. #define __in_bcount_z_opt(size)
  240. #endif
  241. #ifndef __in_nz_opt
  242. #define __nvapi_undef__in_nz_opt
  243. #define __in_nz_opt
  244. #endif
  245. #ifndef __in_ecount_nz_opt
  246. #define __nvapi_undef__in_ecount_nz_opt
  247. #define __in_ecount_nz_opt(size)
  248. #endif
  249. #ifndef __in_bcount_nz_opt
  250. #define __nvapi_undef__in_bcount_nz_opt
  251. #define __in_bcount_nz_opt(size)
  252. #endif
  253. #ifndef __out_opt
  254. #define __nvapi_undef__out_opt
  255. #define __out_opt
  256. #endif
  257. #ifndef __out_ecount_opt
  258. #define __nvapi_undef__out_ecount_opt
  259. #define __out_ecount_opt(size)
  260. #endif
  261. #ifndef __out_bcount_opt
  262. #define __nvapi_undef__out_bcount_opt
  263. #define __out_bcount_opt(size)
  264. #endif
  265. #ifndef __out_ecount_part_opt
  266. #define __nvapi_undef__out_ecount_part_opt
  267. #define __out_ecount_part_opt(size,length)
  268. #endif
  269. #ifndef __out_bcount_part_opt
  270. #define __nvapi_undef__out_bcount_part_opt
  271. #define __out_bcount_part_opt(size,length)
  272. #endif
  273. #ifndef __out_ecount_full_opt
  274. #define __nvapi_undef__out_ecount_full_opt
  275. #define __out_ecount_full_opt(size)
  276. #endif
  277. #ifndef __out_bcount_full_opt
  278. #define __nvapi_undef__out_bcount_full_opt
  279. #define __out_bcount_full_opt(size)
  280. #endif
  281. #ifndef __out_ecount_z_opt
  282. #define __nvapi_undef__out_ecount_z_opt
  283. #define __out_ecount_z_opt(size)
  284. #endif
  285. #ifndef __out_bcount_z_opt
  286. #define __nvapi_undef__out_bcount_z_opt
  287. #define __out_bcount_z_opt(size)
  288. #endif
  289. #ifndef __out_ecount_part_z_opt
  290. #define __nvapi_undef__out_ecount_part_z_opt
  291. #define __out_ecount_part_z_opt(size,length)
  292. #endif
  293. #ifndef __out_bcount_part_z_opt
  294. #define __nvapi_undef__out_bcount_part_z_opt
  295. #define __out_bcount_part_z_opt(size,length)
  296. #endif
  297. #ifndef __out_ecount_full_z_opt
  298. #define __nvapi_undef__out_ecount_full_z_opt
  299. #define __out_ecount_full_z_opt(size)
  300. #endif
  301. #ifndef __out_bcount_full_z_opt
  302. #define __nvapi_undef__out_bcount_full_z_opt
  303. #define __out_bcount_full_z_opt(size)
  304. #endif
  305. #ifndef __out_ecount_nz_opt
  306. #define __nvapi_undef__out_ecount_nz_opt
  307. #define __out_ecount_nz_opt(size)
  308. #endif
  309. #ifndef __out_bcount_nz_opt
  310. #define __nvapi_undef__out_bcount_nz_opt
  311. #define __out_bcount_nz_opt(size)
  312. #endif
  313. #ifndef __inout_opt
  314. #define __nvapi_undef__inout_opt
  315. #define __inout_opt
  316. #endif
  317. #ifndef __inout_ecount_opt
  318. #define __nvapi_undef__inout_ecount_opt
  319. #define __inout_ecount_opt(size)
  320. #endif
  321. #ifndef __inout_bcount_opt
  322. #define __nvapi_undef__inout_bcount_opt
  323. #define __inout_bcount_opt(size)
  324. #endif
  325. #ifndef __inout_ecount_part_opt
  326. #define __nvapi_undef__inout_ecount_part_opt
  327. #define __inout_ecount_part_opt(size,length)
  328. #endif
  329. #ifndef __inout_bcount_part_opt
  330. #define __nvapi_undef__inout_bcount_part_opt
  331. #define __inout_bcount_part_opt(size,length)
  332. #endif
  333. #ifndef __inout_ecount_full_opt
  334. #define __nvapi_undef__inout_ecount_full_opt
  335. #define __inout_ecount_full_opt(size)
  336. #endif
  337. #ifndef __inout_bcount_full_opt
  338. #define __nvapi_undef__inout_bcount_full_opt
  339. #define __inout_bcount_full_opt(size)
  340. #endif
  341. #ifndef __inout_z_opt
  342. #define __nvapi_undef__inout_z_opt
  343. #define __inout_z_opt
  344. #endif
  345. #ifndef __inout_ecount_z_opt
  346. #define __nvapi_undef__inout_ecount_z_opt
  347. #define __inout_ecount_z_opt(size)
  348. #endif
  349. #ifndef __inout_ecount_z_opt
  350. #define __nvapi_undef__inout_ecount_z_opt
  351. #define __inout_ecount_z_opt(size)
  352. #endif
  353. #ifndef __inout_bcount_z_opt
  354. #define __nvapi_undef__inout_bcount_z_opt
  355. #define __inout_bcount_z_opt(size)
  356. #endif
  357. #ifndef __inout_nz_opt
  358. #define __nvapi_undef__inout_nz_opt
  359. #define __inout_nz_opt
  360. #endif
  361. #ifndef __inout_ecount_nz_opt
  362. #define __nvapi_undef__inout_ecount_nz_opt
  363. #define __inout_ecount_nz_opt(size)
  364. #endif
  365. #ifndef __inout_bcount_nz_opt
  366. #define __nvapi_undef__inout_bcount_nz_opt
  367. #define __inout_bcount_nz_opt(size)
  368. #endif
  369. #ifndef __deref_ecount
  370. #define __nvapi_undef__deref_ecount
  371. #define __deref_ecount(size)
  372. #endif
  373. #ifndef __deref_bcount
  374. #define __nvapi_undef__deref_bcount
  375. #define __deref_bcount(size)
  376. #endif
  377. #ifndef __deref_out
  378. #define __nvapi_undef__deref_out
  379. #define __deref_out
  380. #endif
  381. #ifndef __deref_out_ecount
  382. #define __nvapi_undef__deref_out_ecount
  383. #define __deref_out_ecount(size)
  384. #endif
  385. #ifndef __deref_out_bcount
  386. #define __nvapi_undef__deref_out_bcount
  387. #define __deref_out_bcount(size)
  388. #endif
  389. #ifndef __deref_out_ecount_part
  390. #define __nvapi_undef__deref_out_ecount_part
  391. #define __deref_out_ecount_part(size,length)
  392. #endif
  393. #ifndef __deref_out_bcount_part
  394. #define __nvapi_undef__deref_out_bcount_part
  395. #define __deref_out_bcount_part(size,length)
  396. #endif
  397. #ifndef __deref_out_ecount_full
  398. #define __nvapi_undef__deref_out_ecount_full
  399. #define __deref_out_ecount_full(size)
  400. #endif
  401. #ifndef __deref_out_bcount_full
  402. #define __nvapi_undef__deref_out_bcount_full
  403. #define __deref_out_bcount_full(size)
  404. #endif
  405. #ifndef __deref_out_z
  406. #define __nvapi_undef__deref_out_z
  407. #define __deref_out_z
  408. #endif
  409. #ifndef __deref_out_ecount_z
  410. #define __nvapi_undef__deref_out_ecount_z
  411. #define __deref_out_ecount_z(size)
  412. #endif
  413. #ifndef __deref_out_bcount_z
  414. #define __nvapi_undef__deref_out_bcount_z
  415. #define __deref_out_bcount_z(size)
  416. #endif
  417. #ifndef __deref_out_nz
  418. #define __nvapi_undef__deref_out_nz
  419. #define __deref_out_nz
  420. #endif
  421. #ifndef __deref_out_ecount_nz
  422. #define __nvapi_undef__deref_out_ecount_nz
  423. #define __deref_out_ecount_nz(size)
  424. #endif
  425. #ifndef __deref_out_bcount_nz
  426. #define __nvapi_undef__deref_out_bcount_nz
  427. #define __deref_out_bcount_nz(size)
  428. #endif
  429. #ifndef __deref_inout
  430. #define __nvapi_undef__deref_inout
  431. #define __deref_inout
  432. #endif
  433. #ifndef __deref_inout_z
  434. #define __nvapi_undef__deref_inout_z
  435. #define __deref_inout_z
  436. #endif
  437. #ifndef __deref_inout_ecount
  438. #define __nvapi_undef__deref_inout_ecount
  439. #define __deref_inout_ecount(size)
  440. #endif
  441. #ifndef __deref_inout_bcount
  442. #define __nvapi_undef__deref_inout_bcount
  443. #define __deref_inout_bcount(size)
  444. #endif
  445. #ifndef __deref_inout_ecount_part
  446. #define __nvapi_undef__deref_inout_ecount_part
  447. #define __deref_inout_ecount_part(size,length)
  448. #endif
  449. #ifndef __deref_inout_bcount_part
  450. #define __nvapi_undef__deref_inout_bcount_part
  451. #define __deref_inout_bcount_part(size,length)
  452. #endif
  453. #ifndef __deref_inout_ecount_full
  454. #define __nvapi_undef__deref_inout_ecount_full
  455. #define __deref_inout_ecount_full(size)
  456. #endif
  457. #ifndef __deref_inout_bcount_full
  458. #define __nvapi_undef__deref_inout_bcount_full
  459. #define __deref_inout_bcount_full(size)
  460. #endif
  461. #ifndef __deref_inout_z
  462. #define __nvapi_undef__deref_inout_z
  463. #define __deref_inout_z
  464. #endif
  465. #ifndef __deref_inout_ecount_z
  466. #define __nvapi_undef__deref_inout_ecount_z
  467. #define __deref_inout_ecount_z(size)
  468. #endif
  469. #ifndef __deref_inout_bcount_z
  470. #define __nvapi_undef__deref_inout_bcount_z
  471. #define __deref_inout_bcount_z(size)
  472. #endif
  473. #ifndef __deref_inout_nz
  474. #define __nvapi_undef__deref_inout_nz
  475. #define __deref_inout_nz
  476. #endif
  477. #ifndef __deref_inout_ecount_nz
  478. #define __nvapi_undef__deref_inout_ecount_nz
  479. #define __deref_inout_ecount_nz(size)
  480. #endif
  481. #ifndef __deref_inout_bcount_nz
  482. #define __nvapi_undef__deref_inout_bcount_nz
  483. #define __deref_inout_bcount_nz(size)
  484. #endif
  485. #ifndef __deref_ecount_opt
  486. #define __nvapi_undef__deref_ecount_opt
  487. #define __deref_ecount_opt(size)
  488. #endif
  489. #ifndef __deref_bcount_opt
  490. #define __nvapi_undef__deref_bcount_opt
  491. #define __deref_bcount_opt(size)
  492. #endif
  493. #ifndef __deref_out_opt
  494. #define __nvapi_undef__deref_out_opt
  495. #define __deref_out_opt
  496. #endif
  497. #ifndef __deref_out_ecount_opt
  498. #define __nvapi_undef__deref_out_ecount_opt
  499. #define __deref_out_ecount_opt(size)
  500. #endif
  501. #ifndef __deref_out_bcount_opt
  502. #define __nvapi_undef__deref_out_bcount_opt
  503. #define __deref_out_bcount_opt(size)
  504. #endif
  505. #ifndef __deref_out_ecount_part_opt
  506. #define __nvapi_undef__deref_out_ecount_part_opt
  507. #define __deref_out_ecount_part_opt(size,length)
  508. #endif
  509. #ifndef __deref_out_bcount_part_opt
  510. #define __nvapi_undef__deref_out_bcount_part_opt
  511. #define __deref_out_bcount_part_opt(size,length)
  512. #endif
  513. #ifndef __deref_out_ecount_full_opt
  514. #define __nvapi_undef__deref_out_ecount_full_opt
  515. #define __deref_out_ecount_full_opt(size)
  516. #endif
  517. #ifndef __deref_out_bcount_full_opt
  518. #define __nvapi_undef__deref_out_bcount_full_opt
  519. #define __deref_out_bcount_full_opt(size)
  520. #endif
  521. #ifndef __deref_out_z_opt
  522. #define __nvapi_undef__deref_out_z_opt
  523. #define __deref_out_z_opt
  524. #endif
  525. #ifndef __deref_out_ecount_z_opt
  526. #define __nvapi_undef__deref_out_ecount_z_opt
  527. #define __deref_out_ecount_z_opt(size)
  528. #endif
  529. #ifndef __deref_out_bcount_z_opt
  530. #define __nvapi_undef__deref_out_bcount_z_opt
  531. #define __deref_out_bcount_z_opt(size)
  532. #endif
  533. #ifndef __deref_out_nz_opt
  534. #define __nvapi_undef__deref_out_nz_opt
  535. #define __deref_out_nz_opt
  536. #endif
  537. #ifndef __deref_out_ecount_nz_opt
  538. #define __nvapi_undef__deref_out_ecount_nz_opt
  539. #define __deref_out_ecount_nz_opt(size)
  540. #endif
  541. #ifndef __deref_out_bcount_nz_opt
  542. #define __nvapi_undef__deref_out_bcount_nz_opt
  543. #define __deref_out_bcount_nz_opt(size)
  544. #endif
  545. #ifndef __deref_inout_opt
  546. #define __nvapi_undef__deref_inout_opt
  547. #define __deref_inout_opt
  548. #endif
  549. #ifndef __deref_inout_ecount_opt
  550. #define __nvapi_undef__deref_inout_ecount_opt
  551. #define __deref_inout_ecount_opt(size)
  552. #endif
  553. #ifndef __deref_inout_bcount_opt
  554. #define __nvapi_undef__deref_inout_bcount_opt
  555. #define __deref_inout_bcount_opt(size)
  556. #endif
  557. #ifndef __deref_inout_ecount_part_opt
  558. #define __nvapi_undef__deref_inout_ecount_part_opt
  559. #define __deref_inout_ecount_part_opt(size,length)
  560. #endif
  561. #ifndef __deref_inout_bcount_part_opt
  562. #define __nvapi_undef__deref_inout_bcount_part_opt
  563. #define __deref_inout_bcount_part_opt(size,length)
  564. #endif
  565. #ifndef __deref_inout_ecount_full_opt
  566. #define __nvapi_undef__deref_inout_ecount_full_opt
  567. #define __deref_inout_ecount_full_opt(size)
  568. #endif
  569. #ifndef __deref_inout_bcount_full_opt
  570. #define __nvapi_undef__deref_inout_bcount_full_opt
  571. #define __deref_inout_bcount_full_opt(size)
  572. #endif
  573. #ifndef __deref_inout_z_opt
  574. #define __nvapi_undef__deref_inout_z_opt
  575. #define __deref_inout_z_opt
  576. #endif
  577. #ifndef __deref_inout_ecount_z_opt
  578. #define __nvapi_undef__deref_inout_ecount_z_opt
  579. #define __deref_inout_ecount_z_opt(size)
  580. #endif
  581. #ifndef __deref_inout_bcount_z_opt
  582. #define __nvapi_undef__deref_inout_bcount_z_opt
  583. #define __deref_inout_bcount_z_opt(size)
  584. #endif
  585. #ifndef __deref_inout_nz_opt
  586. #define __nvapi_undef__deref_inout_nz_opt
  587. #define __deref_inout_nz_opt
  588. #endif
  589. #ifndef __deref_inout_ecount_nz_opt
  590. #define __nvapi_undef__deref_inout_ecount_nz_opt
  591. #define __deref_inout_ecount_nz_opt(size)
  592. #endif
  593. #ifndef __deref_inout_bcount_nz_opt
  594. #define __nvapi_undef__deref_inout_bcount_nz_opt
  595. #define __deref_inout_bcount_nz_opt(size)
  596. #endif
  597. #ifndef __deref_opt_ecount
  598. #define __nvapi_undef__deref_opt_ecount
  599. #define __deref_opt_ecount(size)
  600. #endif
  601. #ifndef __deref_opt_bcount
  602. #define __nvapi_undef__deref_opt_bcount
  603. #define __deref_opt_bcount(size)
  604. #endif
  605. #ifndef __deref_opt_out
  606. #define __nvapi_undef__deref_opt_out
  607. #define __deref_opt_out
  608. #endif
  609. #ifndef __deref_opt_out_z
  610. #define __nvapi_undef__deref_opt_out_z
  611. #define __deref_opt_out_z
  612. #endif
  613. #ifndef __deref_opt_out_ecount
  614. #define __nvapi_undef__deref_opt_out_ecount
  615. #define __deref_opt_out_ecount(size)
  616. #endif
  617. #ifndef __deref_opt_out_bcount
  618. #define __nvapi_undef__deref_opt_out_bcount
  619. #define __deref_opt_out_bcount(size)
  620. #endif
  621. #ifndef __deref_opt_out_ecount_part
  622. #define __nvapi_undef__deref_opt_out_ecount_part
  623. #define __deref_opt_out_ecount_part(size,length)
  624. #endif
  625. #ifndef __deref_opt_out_bcount_part
  626. #define __nvapi_undef__deref_opt_out_bcount_part
  627. #define __deref_opt_out_bcount_part(size,length)
  628. #endif
  629. #ifndef __deref_opt_out_ecount_full
  630. #define __nvapi_undef__deref_opt_out_ecount_full
  631. #define __deref_opt_out_ecount_full(size)
  632. #endif
  633. #ifndef __deref_opt_out_bcount_full
  634. #define __nvapi_undef__deref_opt_out_bcount_full
  635. #define __deref_opt_out_bcount_full(size)
  636. #endif
  637. #ifndef __deref_opt_inout
  638. #define __nvapi_undef__deref_opt_inout
  639. #define __deref_opt_inout
  640. #endif
  641. #ifndef __deref_opt_inout_ecount
  642. #define __nvapi_undef__deref_opt_inout_ecount
  643. #define __deref_opt_inout_ecount(size)
  644. #endif
  645. #ifndef __deref_opt_inout_bcount
  646. #define __nvapi_undef__deref_opt_inout_bcount
  647. #define __deref_opt_inout_bcount(size)
  648. #endif
  649. #ifndef __deref_opt_inout_ecount_part
  650. #define __nvapi_undef__deref_opt_inout_ecount_part
  651. #define __deref_opt_inout_ecount_part(size,length)
  652. #endif
  653. #ifndef __deref_opt_inout_bcount_part
  654. #define __nvapi_undef__deref_opt_inout_bcount_part
  655. #define __deref_opt_inout_bcount_part(size,length)
  656. #endif
  657. #ifndef __deref_opt_inout_ecount_full
  658. #define __nvapi_undef__deref_opt_inout_ecount_full
  659. #define __deref_opt_inout_ecount_full(size)
  660. #endif
  661. #ifndef __deref_opt_inout_bcount_full
  662. #define __nvapi_undef__deref_opt_inout_bcount_full
  663. #define __deref_opt_inout_bcount_full(size)
  664. #endif
  665. #ifndef __deref_opt_inout_z
  666. #define __nvapi_undef__deref_opt_inout_z
  667. #define __deref_opt_inout_z
  668. #endif
  669. #ifndef __deref_opt_inout_ecount_z
  670. #define __nvapi_undef__deref_opt_inout_ecount_z
  671. #define __deref_opt_inout_ecount_z(size)
  672. #endif
  673. #ifndef __deref_opt_inout_bcount_z
  674. #define __nvapi_undef__deref_opt_inout_bcount_z
  675. #define __deref_opt_inout_bcount_z(size)
  676. #endif
  677. #ifndef __deref_opt_inout_nz
  678. #define __nvapi_undef__deref_opt_inout_nz
  679. #define __deref_opt_inout_nz
  680. #endif
  681. #ifndef __deref_opt_inout_ecount_nz
  682. #define __nvapi_undef__deref_opt_inout_ecount_nz
  683. #define __deref_opt_inout_ecount_nz(size)
  684. #endif
  685. #ifndef __deref_opt_inout_bcount_nz
  686. #define __nvapi_undef__deref_opt_inout_bcount_nz
  687. #define __deref_opt_inout_bcount_nz(size)
  688. #endif
  689. #ifndef __deref_opt_ecount_opt
  690. #define __nvapi_undef__deref_opt_ecount_opt
  691. #define __deref_opt_ecount_opt(size)
  692. #endif
  693. #ifndef __deref_opt_bcount_opt
  694. #define __nvapi_undef__deref_opt_bcount_opt
  695. #define __deref_opt_bcount_opt(size)
  696. #endif
  697. #ifndef __deref_opt_out_opt
  698. #define __nvapi_undef__deref_opt_out_opt
  699. #define __deref_opt_out_opt
  700. #endif
  701. #ifndef __deref_opt_out_ecount_opt
  702. #define __nvapi_undef__deref_opt_out_ecount_opt
  703. #define __deref_opt_out_ecount_opt(size)
  704. #endif
  705. #ifndef __deref_opt_out_bcount_opt
  706. #define __nvapi_undef__deref_opt_out_bcount_opt
  707. #define __deref_opt_out_bcount_opt(size)
  708. #endif
  709. #ifndef __deref_opt_out_ecount_part_opt
  710. #define __nvapi_undef__deref_opt_out_ecount_part_opt
  711. #define __deref_opt_out_ecount_part_opt(size,length)
  712. #endif
  713. #ifndef __deref_opt_out_bcount_part_opt
  714. #define __nvapi_undef__deref_opt_out_bcount_part_opt
  715. #define __deref_opt_out_bcount_part_opt(size,length)
  716. #endif
  717. #ifndef __deref_opt_out_ecount_full_opt
  718. #define __nvapi_undef__deref_opt_out_ecount_full_opt
  719. #define __deref_opt_out_ecount_full_opt(size)
  720. #endif
  721. #ifndef __deref_opt_out_bcount_full_opt
  722. #define __nvapi_undef__deref_opt_out_bcount_full_opt
  723. #define __deref_opt_out_bcount_full_opt(size)
  724. #endif
  725. #ifndef __deref_opt_out_z_opt
  726. #define __nvapi_undef__deref_opt_out_z_opt
  727. #define __deref_opt_out_z_opt
  728. #endif
  729. #ifndef __deref_opt_out_ecount_z_opt
  730. #define __nvapi_undef__deref_opt_out_ecount_z_opt
  731. #define __deref_opt_out_ecount_z_opt(size)
  732. #endif
  733. #ifndef __deref_opt_out_bcount_z_opt
  734. #define __nvapi_undef__deref_opt_out_bcount_z_opt
  735. #define __deref_opt_out_bcount_z_opt(size)
  736. #endif
  737. #ifndef __deref_opt_out_nz_opt
  738. #define __nvapi_undef__deref_opt_out_nz_opt
  739. #define __deref_opt_out_nz_opt
  740. #endif
  741. #ifndef __deref_opt_out_ecount_nz_opt
  742. #define __nvapi_undef__deref_opt_out_ecount_nz_opt
  743. #define __deref_opt_out_ecount_nz_opt(size)
  744. #endif
  745. #ifndef __deref_opt_out_bcount_nz_opt
  746. #define __nvapi_undef__deref_opt_out_bcount_nz_opt
  747. #define __deref_opt_out_bcount_nz_opt(size)
  748. #endif
  749. #ifndef __deref_opt_inout_opt
  750. #define __nvapi_undef__deref_opt_inout_opt
  751. #define __deref_opt_inout_opt
  752. #endif
  753. #ifndef __deref_opt_inout_ecount_opt
  754. #define __nvapi_undef__deref_opt_inout_ecount_opt
  755. #define __deref_opt_inout_ecount_opt(size)
  756. #endif
  757. #ifndef __deref_opt_inout_bcount_opt
  758. #define __nvapi_undef__deref_opt_inout_bcount_opt
  759. #define __deref_opt_inout_bcount_opt(size)
  760. #endif
  761. #ifndef __deref_opt_inout_ecount_part_opt
  762. #define __nvapi_undef__deref_opt_inout_ecount_part_opt
  763. #define __deref_opt_inout_ecount_part_opt(size,length)
  764. #endif
  765. #ifndef __deref_opt_inout_bcount_part_opt
  766. #define __nvapi_undef__deref_opt_inout_bcount_part_opt
  767. #define __deref_opt_inout_bcount_part_opt(size,length)
  768. #endif
  769. #ifndef __deref_opt_inout_ecount_full_opt
  770. #define __nvapi_undef__deref_opt_inout_ecount_full_opt
  771. #define __deref_opt_inout_ecount_full_opt(size)
  772. #endif
  773. #ifndef __deref_opt_inout_bcount_full_opt
  774. #define __nvapi_undef__deref_opt_inout_bcount_full_opt
  775. #define __deref_opt_inout_bcount_full_opt(size)
  776. #endif
  777. #ifndef __deref_opt_inout_z_opt
  778. #define __nvapi_undef__deref_opt_inout_z_opt
  779. #define __deref_opt_inout_z_opt
  780. #endif
  781. #ifndef __deref_opt_inout_ecount_z_opt
  782. #define __nvapi_undef__deref_opt_inout_ecount_z_opt
  783. #define __deref_opt_inout_ecount_z_opt(size)
  784. #endif
  785. #ifndef __deref_opt_inout_bcount_z_opt
  786. #define __nvapi_undef__deref_opt_inout_bcount_z_opt
  787. #define __deref_opt_inout_bcount_z_opt(size)
  788. #endif
  789. #ifndef __deref_opt_inout_nz_opt
  790. #define __nvapi_undef__deref_opt_inout_nz_opt
  791. #define __deref_opt_inout_nz_opt
  792. #endif
  793. #ifndef __deref_opt_inout_ecount_nz_opt
  794. #define __nvapi_undef__deref_opt_inout_ecount_nz_opt
  795. #define __deref_opt_inout_ecount_nz_opt(size)
  796. #endif
  797. #ifndef __deref_opt_inout_bcount_nz_opt
  798. #define __nvapi_undef__deref_opt_inout_bcount_nz_opt
  799. #define __deref_opt_inout_bcount_nz_opt(size)
  800. #endif
  801. #ifndef __success
  802. #define __nvapi_success
  803. #define __success(epxr)
  804. #endif
  805. #ifndef _Ret_notnull_
  806. #define __nvapi__Ret_notnull_
  807. #define _Ret_notnull_
  808. #endif
  809. #ifndef _Post_writable_byte_size_
  810. #define __nvapi__Post_writable_byte_size_
  811. #define _Post_writable_byte_size_(n)
  812. #endif
  813. #ifndef _Outptr_
  814. #define __nvapi_Outptr_
  815. #define _Outptr_
  816. #endif
  817. #define NVAPI_INTERFACE extern __success(return == NVAPI_OK) NvAPI_Status __cdecl