Skip to content

Commit 5c0b3e6

Browse files
committed
cleaning docs to make it more clear what are C functions and what are macros
1 parent 9048d07 commit 5c0b3e6

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

lib/OpenMP/Simple.pm

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use Alien::OpenMP;
77
our $VERSION = q{0.2.2};
88

99
# This module is a wrapper around a ".h" file that is injected into Alien::OpenMP
10-
# via Inline:C's AUTO_INCLUDE feature. This header file constains C MACROs for reading
10+
# via Inline:C's AUTO_INCLUDE feature. This header file constains C macros for reading
1111
# OpenMP relavent environmental variables via %ENV (set by OpenMP::Environment perhaps)
1212
# and using the standard OpenMP runtime functions to set them.
1313

@@ -29,8 +29,8 @@ __END__
2929
3030
=head1 NAME
3131
32-
OpenMP::Simple - Wrapper around C<Alien::OpenMP> that provides helpful C MACROs and
33-
runtime functions
32+
OpenMP::Simple - Wrapper around C<Alien::OpenMP> that provides helpful C macros and
33+
runtime C functions
3434
3535
=head1 SYNOPSIS
3636
@@ -81,7 +81,7 @@ but C<Test::More> is not required; it's just for show and convenience here.
8181
8282
This module is a wrapper that provides a custom ".h" file, which is injected
8383
into L<Alien::OpenMP> via C<Inline:C>'s C<AUTO_INCLUDE> hook. This header
84-
file constains C MACROs for reading OpenMP relavent environmental variables
84+
file constains C macros for reading OpenMP relavent environmental variables
8585
via C<%ENV> (set preferably using L<OpenMP::Environment>) and by calling
8686
the standard OpenMP runtime functions to set them (e.g., C<OMP_NUM_THREADS>
8787
/ C<set_omp_num_threads>).
@@ -115,11 +115,11 @@ are expected to provide.
115115
The tests that are distributed with this module are an excellent source to
116116
examine for example uses.
117117
118-
=head1 PROVIDED MACROS
118+
=head1 PROVIDED C MACROS
119119
120120
=head2 Updating Runtime with Environmental Variables
121121
122-
All MACROS have at least 1 test in the suite. Please look at these in the
122+
All macros have at least 1 test in the suite. Please look at these in the
123123
Github repository to get an idea of how to use C<OpenMP::Simple>'s macros
124124
with C<OpenMP::Environment>.
125125
@@ -337,7 +337,7 @@ reference that's been populated via C<av_push>.
337337
return ret;
338338
}
339339
340-
=head1 PROVIDED PERL ARRAY COUNTING FUNCTIONS
340+
=head1 PROVIDED C FUNCTIONS FOR COUNTING PERL ARRAYS
341341
342342
=head2 C<int PerlOMP_1D_Array_NUM_ELEMENTS (SV *AVref)>
343343
@@ -439,44 +439,44 @@ of each row.
439439
return count;
440440
}
441441
442-
=head1 PROVIDED 1D PERL TO C CONVERSION FUNCTIONS
442+
=head1 PROVIDED C FUNCTIONS FOR CONVERTING 1D PERL ARRAYS TO C ARRAYS
443443
444444
B<Note>: Work is currently focused on finding the true limits of the Perl C
445445
API. It is likely that in a lot of cases, elements in Perl Arrays (AV) and Perl
446446
Hashes (HV) maybe accessed safely without first transferring the entire data
447447
structures into its pure C<C> equivalent.
448448
449-
=head2 C<PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY>
449+
=head2 C<void PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY>
450450
451451
void PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY(SV *AVref, int numElements, float retArray[numElements]);
452452
453453
Converts a 1D Perl Array Reference (C<AV*>) into a 1D C array of floats. This function assumes the Perl array contains numeric floating point values.
454454
455-
=head2 C<PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY_r>
455+
=head2 C<void PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY_r>
456456
457457
void PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY_r(SV *AVref, int numElements, float retArray[numElements]);
458458
459-
The parallelized version of C<PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
459+
The parallelized version of C<void PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
460460
461-
=head2 C<PerlOMP_1D_Array_TO_1D_INT_ARRAY>
461+
=head2 C<void PerlOMP_1D_Array_TO_1D_INT_ARRAY>
462462
463463
void PerlOMP_1D_Array_TO_1D_INT_ARRAY(SV *AVref, int numElements, int retArray[numElements]);
464464
465465
Converts a 1D Perl Array Reference (C<AV*>) into a 1D C array of integers. This function assumes the Perl array contains integer values.
466466
467-
=head2 C<PerlOMP_1D_Array_TO_1D_INT_ARRAY_r>
467+
=head2 C<void PerlOMP_1D_Array_TO_1D_INT_ARRAY_r>
468468
469469
void PerlOMP_1D_Array_TO_1D_INT_ARRAY_r(SV *AVref, int numElements, int retArray[numElements]);
470470
471-
The parallelized version of C<PerlOMP_1D_Array_TO_1D_INT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
471+
The parallelized version of C<void PerlOMP_1D_Array_TO_1D_INT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
472472
473-
=head2 C<PerlOMP_1D_Array_TO_1D_STRING_ARRAY>
473+
=head2 C<void PerlOMP_1D_Array_TO_1D_STRING_ARRAY>
474474
475475
void PerlOMP_1D_Array_TO_1D_STRING_ARRAY(SV *AVref, int numElements, char *retArray[numElements]);
476476
477477
Converts a 1D Perl Array Reference (C<AV*>) into a 1D C array of strings. The Perl array should contain string values.
478478
479-
=head2 C<PerlOMP_1D_Array_TO_1D_STRING_ARRAY_r>
479+
=head2 C<void PerlOMP_1D_Array_TO_1D_STRING_ARRAY_r>
480480
481481
void PerlOMP_1D_Array_TO_1D_STRING_ARRAY_r(SV *AVref, int numElements, char *retArray[numElements]);
482482
@@ -591,43 +591,43 @@ The parallelized version of C<PerlOMP_1D_Array_TO_1D_STRING_ARRAY> using OpenMP.
591591
return ret;
592592
}
593593
594-
=head1 PROVIDED 2D PERL TO C CONVERSION FUNCTIONS
594+
=head1 PROVIDED C FUNCTIONS FOR CONVERTING 2D PERL ARRAYS TO C ARRAYS
595595
596-
=head2 C<PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY>
596+
=head2 C<void PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY>
597597
598598
void PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY(SV *AoA, int numRows, int rowSize, float retArray[numRows][rowSize]);
599599
600600
Converts a 2D Array of Arrays (AoA) in Perl into a 2D C array of floats. The Perl array should be an array of arrays, where each inner array contains floating point values.
601601
602-
=head2 C<PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY_r>
602+
=head2 C<void PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY_r>
603603
604604
void PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY_r(SV *AoA, int numRows, int rowSize, float retArray[numRows][rowSize]);
605605
606-
The parallelized version of C<PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
606+
The parallelized version of C<void PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
607607
608-
=head2 C<PerlOMP_2D_AoA_TO_2D_INT_ARRAY>
608+
=head2 C<void PerlOMP_2D_AoA_TO_2D_INT_ARRAY>
609609
610610
void PerlOMP_2D_AoA_TO_2D_INT_ARRAY(SV *AoA, int numRows, int rowSize, int retArray[numRows][rowSize]);
611611
612612
Converts a 2D Array of Arrays (AoA) in Perl into a 2D C array of integers. The Perl array should be an array of arrays, where each inner array contains integer values.
613613
614-
=head2 C<PerlOMP_2D_AoA_TO_2D_INT_ARRAY_r>
614+
=head2 C<void PerlOMP_2D_AoA_TO_2D_INT_ARRAY_r>
615615
616616
void PerlOMP_2D_AoA_TO_2D_INT_ARRAY_r(SV *AoA, int numRows, int rowSize, int retArray[numRows][rowSize]);
617617
618-
The parallelized version of C<PerlOMP_2D_AoA_TO_2D_INT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
618+
The parallelized version of C<void PerlOMP_2D_AoA_TO_2D_INT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
619619
620-
=head2 C<PerlOMP_2D_AoA_TO_2D_STRING_ARRAY>
620+
=head2 C<void PerlOMP_2D_AoA_TO_2D_STRING_ARRAY>
621621
622622
void PerlOMP_2D_AoA_TO_2D_STRING_ARRAY(SV *AoA, int numRows, int rowSize, char *retArray[numRows][rowSize]);
623623
624624
Converts a 2D Array of Arrays (AoA) in Perl into a 2D C array of strings. The Perl array should be an array of arrays, where each inner array contains string values.
625625
626-
=head2 C<PerlOMP_2D_AoA_TO_2D_STRING_ARRAY_r>
626+
=head2 C<void PerlOMP_2D_AoA_TO_2D_STRING_ARRAY_r>
627627
628628
void PerlOMP_2D_AoA_TO_2D_STRING_ARRAY_r(SV *AoA, int numRows, int rowSize, char *retArray[numRows][rowSize]);
629629
630-
The parallelized version of C<PerlOMP_2D_AoA_TO_2D_STRING_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
630+
The parallelized version of C<void PerlOMP_2D_AoA_TO_2D_STRING_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
631631
632632
=head2 Example
633633
@@ -735,49 +735,49 @@ The parallelized version of C<PerlOMP_2D_AoA_TO_2D_STRING_ARRAY> using OpenMP. T
735735
736736
=head1 PROVIDED ARRAY MEMBER VERIFICATION FUNCTIONS
737737
738-
=head2 C<PerlOMP_VERIFY_1D_Array>
738+
=head2 C<void PerlOMP_VERIFY_1D_Array>
739739
740740
void PerlOMP_VERIFY_1D_Array(SV* array);
741741
742742
Verifies that the given Perl variable is a valid 1D array reference.
743743
744-
=head2 C<PerlOMP_VERIFY_1D_INT_ARRAY>
744+
=head2 C<void PerlOMP_VERIFY_1D_INT_ARRAY>
745745
746746
void PerlOMP_VERIFY_1D_INT_ARRAY(SV* array);
747747
748748
Verifies that the given 1D array contains only integer values.
749749
750-
=head2 C<PerlOMP_VERIFY_1D_FLOAT_ARRAY>
750+
=head2 C<void PerlOMP_VERIFY_1D_FLOAT_ARRAY>
751751
752752
void PerlOMP_VERIFY_1D_FLOAT_ARRAY(SV* array);
753753
754754
Verifies that the given 1D array contains only floating-point values.
755755
756-
=head2 C<PerlOMP_VERIFY_1D_CHAR_ARRAY>
756+
=head2 C<void PerlOMP_VERIFY_1D_CHAR_ARRAY>
757757
758758
void PerlOMP_VERIFY_1D_CHAR_ARRAY(SV* array);
759759
760760
Verifies that the given 1D array contains only string values.
761761
762-
=head2 C<PerlOMP_VERIFY_2D_AoA>
762+
=head2 C<void PerlOMP_VERIFY_2D_AoA>
763763
764764
void PerlOMP_VERIFY_2D_AoA(SV* array);
765765
766766
Verifies that the given Perl variable is a valid 2D array of arrays (AoA) reference.
767767
768-
=head2 C<PerlOMP_VERIFY_2D_INT_ARRAY>
768+
=head2 C<void PerlOMP_VERIFY_2D_INT_ARRAY>
769769
770770
void PerlOMP_VERIFY_2D_INT_ARRAY(SV* array);
771771
772772
Verifies that the given 2D array contains only integer values.
773773
774-
=head2 C<PerlOMP_VERIFY_2D_FLOAT_ARRAY>
774+
=head2 C<void PerlOMP_VERIFY_2D_FLOAT_ARRAY>
775775
776776
void PerlOMP_VERIFY_2D_FLOAT_ARRAY(SV* array);
777777
778778
Verifies that the given 2D array contains only floating-point values.
779779
780-
=head2 C<PerlOMP_VERIFY_2D_STRING_ARRAY>
780+
=head2 C<void PerlOMP_VERIFY_2D_STRING_ARRAY>
781781
782782
void PerlOMP_VERIFY_2D_STRING_ARRAY(SV* array);
783783

0 commit comments

Comments
 (0)