Mercurial > projects > ldc
comparison runtime/internal/adi.d @ 717:a26b0c5d5942
Merged DMD 1.036.
Improved comments a little in the runtime source code.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 17:06:17 +0200 |
parents | 30b42a283c8e |
children | e78e1d559a76 |
comparison
equal
deleted
inserted
replaced
716:b654bb98d31d | 717:a26b0c5d5942 |
---|---|
238 } | 238 } |
239 | 239 |
240 | 240 |
241 /********************************************** | 241 /********************************************** |
242 * Support for array.reverse property. | 242 * Support for array.reverse property. |
243 * The actual type is painted on the return value by the frontend | |
244 * Given and returned length are number of elements | |
243 */ | 245 */ |
244 | 246 |
245 extern (C) void[] _adReverse(void[] a, size_t szelem) | 247 extern (C) void[] _adReverse(void[] a, size_t szelem) |
246 out (result) | 248 out (result) |
247 { | 249 { |
368 return a; | 370 return a; |
369 } | 371 } |
370 | 372 |
371 /*************************************** | 373 /*************************************** |
372 * Support for array equality test. | 374 * Support for array equality test. |
375 * The actual type is painted on the return value by the frontend | |
376 * Given lengths are number of elements | |
373 */ | 377 */ |
374 | 378 |
375 extern (C) int _adEq(void[] a1, void[] a2, TypeInfo ti) | 379 extern (C) int _adEq(void[] a1, void[] a2, TypeInfo ti) |
376 { | 380 { |
377 debug(adi) printf("_adEq(a1.length = %d, a2.length = %d)\n", a1.length, a2.length); | 381 debug(adi) printf("_adEq(a1.length = %d, a2.length = %d)\n", a1.length, a2.length); |
398 assert(a != "hxxxx"); | 402 assert(a != "hxxxx"); |
399 } | 403 } |
400 | 404 |
401 /*************************************** | 405 /*************************************** |
402 * Support for array compare test. | 406 * Support for array compare test. |
407 * The actual type is painted on the return value by the frontend | |
408 * Given lengths are number of elements | |
403 */ | 409 */ |
404 | 410 |
405 extern (C) int _adCmp(void[] a1, void[] a2, TypeInfo ti) | 411 extern (C) int _adCmp(void[] a1, void[] a2, TypeInfo ti) |
406 { | 412 { |
407 debug(adi) printf("adCmp()\n"); | 413 debug(adi) printf("adCmp()\n"); |
435 assert(a >= "hello"); | 441 assert(a >= "hello"); |
436 } | 442 } |
437 | 443 |
438 /*************************************** | 444 /*************************************** |
439 * Support for array compare test. | 445 * Support for array compare test. |
446 * The actual type is painted on the return value by the frontend | |
447 * Given lengths are number of elements | |
440 */ | 448 */ |
441 | 449 |
442 extern (C) int _adCmpChar(void[] a1, void[] a2) | 450 extern (C) int _adCmpChar(void[] a1, void[] a2) |
443 { | 451 { |
444 version(D_InlineAsm_X86) | 452 version(D_InlineAsm_X86) |