This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
from typing import Any, Dict, List, Union, TextIO | |
OSCAL_CATALOG_FILES = [ | |
"oscal_catalog_schema", | |
"oscal_component_schema", | |
"oscal_profile_schema", | |
"oscal_ssp_schema" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int normal_loop(int[] nums) { | |
int x = 0; | |
for (int i = 0; i < 250; i++) { | |
x += nums[i]; | |
} | |
return x; | |
} | |
int unrolled_loop(int[] nums) { | |
int x = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Compute prefix sum of vector a */ | |
void psum1(float a[], float p[], long n) { | |
float l_v, v; | |
l_v = p[0] = a[0]; | |
for (long i = 0; i < n; i++) { | |
v = l_v + a[i]; | |
p[i] = v; | |
l_v = v; |