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
    
  
  
    
  | #include <math.h> | |
| #include <stdbool.h> | |
| #include <stdio.h> | |
| #include <SDL2/SDL.h> | |
| #include <SDL2/SDL_video.h> | |
| #include <SDL2/SDL_vulkan.h> | |
| #define VK_NO_PROTOTYPES | |
| #include <vulkan/vulkan.h> | |
| #define COUNT_OF(array) (sizeof(array) / sizeof((array)[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
    
  
  
    
  | # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org> | |
| pkgname=js78 | |
| pkgver=78.1.0 | |
| pkgrel=1 | |
| pkgdesc="JavaScript interpreter and libraries - Version 78" | |
| arch=(x86_64) | |
| url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey" | |
| license=(MPL) | |
| depends=(gcc-libs readline zlib sh) | 
  
    
      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
    
  
  
    
  | // C99 rounds x/y towards zero | |
| int ceildiv(int x, int y) | |
| { | |
| return x / y + (x % y > 0); | |
| } | |
| int floordiv(int x, int y) | |
| { | |
| return x / y - (x % y < 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
    
  
  
    
  | import os | |
| import math | |
| import time | |
| from fcntl import ioctl | |
| MAGIC = 1193180 | |
| KDMKTONE = 0x4B2F | |
| def beep(fd, freq=200, ms=4): | |
| period = (int)(MAGIC // freq) | 
  
    
      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
    
  
  
    
  | import os | |
| import math | |
| import time | |
| from fcntl import ioctl | |
| MAGIC = 1193180 | |
| KDMKTONE = 0x4B30 | |
| def beep(fd, freq=200, ms=3): | |
| period = (int)(MAGIC // freq) |