Changeset e8975278 in mainline for uspace/lib
- Timestamp:
- 2018-05-10T15:14:02Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1420cae9
- Parents:
- ae7d03c
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-10 07:53:56)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-10 15:14:02)
- Location:
- uspace/lib
- Files:
-
- 5 edited
-
c/arch/ia32/src/rtld/reloc.c (modified) (1 diff)
-
c/arch/ia32/src/tls.c (modified) (1 diff)
-
posix/src/stdio/scanf.c (modified) (4 diffs)
-
trackmod/trackmod.c (modified) (2 diffs)
-
trackmod/types/trackmod.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ia32/src/rtld/reloc.c
rae7d03c re8975278 93 93 sym = &sym_table[sym_idx]; 94 94 95 /* DPRINTF("name '%s', value 0x%x, size 0x%x\n", 96 str_tab + sym->st_name, 97 sym->st_value, 98 sym->st_size); 99 */ 95 #if 0 96 DPRINTF("name '%s', value 0x%x, size 0x%x\n", 97 str_tab + sym->st_name, sym->st_value, sym->st_size); 98 #endif 100 99 rel_type = ELF32_R_TYPE(r_info); 101 100 r_ptr = (uint32_t *)(r_offset + m->bias); -
uspace/lib/c/arch/ia32/src/tls.c
rae7d03c re8975278 33 33 */ 34 34 /** @file 35 * @ingroup libcia3235 * @ingroup libcia32 36 36 */ 37 37 -
uspace/lib/posix/src/stdio/scanf.c
rae7d03c re8975278 61 61 _PROV_READY, 62 62 /** Cursor is temporarily lent to the external entity. No action is 63 * possible until the cursor is returned. */63 * possible until the cursor is returned. */ 64 64 _PROV_CURSOR_LENT, 65 65 }; … … 74 74 int fetched; 75 75 /** Elements are fetched from the source in batches (e.g. by getline()) 76 * to allow using strtol/strtod family even on streams. */76 * to allow using strtol/strtod family even on streams. */ 77 77 char *window; 78 78 /** Size of the current window. */ … … 84 84 85 85 /** Take control over data source. Finish initialization of the internal 86 * structures (e.g. allocation of window). */86 * structures (e.g. allocation of window). */ 87 87 void (*capture)(struct __input_provider *); 88 88 /** Get a single element from the source and update the internal structures 89 * accordingly (e.g. greedy update of the window). Return -1 if the90 * element cannot be obtained. */89 * accordingly (e.g. greedy update of the window). Return -1 if the 90 * element cannot be obtained. */ 91 91 int (*pop)(struct __input_provider *); 92 92 /** Undo the most recent not-undone pop operation. Might be necesarry to 93 * flush current window and seek data source backwards. Return 0 if the94 * pop history is exhausted, non-zero on success. */93 * flush current window and seek data source backwards. Return 0 if the 94 * pop history is exhausted, non-zero on success. */ 95 95 int (*undo)(struct __input_provider *); 96 96 /** Lend the cursor to the caller. */ 97 97 const char *(*borrow_cursor)(struct __input_provider *); 98 98 /** Take control over possibly incremented cursor and update the internal 99 * structures if necessary. */99 * structures if necessary. */ 100 100 void (*return_cursor)(struct __input_provider *, const char *); 101 101 /** Release the control over the source. That is, synchronize any 102 * fetched but non-consumed elements (e.g. by seeking) and destruct103 * internal structures (e.g. window deallocation). */102 * fetched but non-consumed elements (e.g. by seeking) and destruct 103 * internal structures (e.g. window deallocation). */ 104 104 void (*release)(struct __input_provider *); 105 105 } _input_provider; … … 411 411 *base = 10; 412 412 return 1; 413 case 'p': /* According to POSIX, %p modifier is implementation defined but 414 * must correspond to its printf counterpart. */ 413 case 'p': 414 /* According to POSIX, %p modifier is implementation defined but 415 * must correspond to its printf counterpart. */ 415 416 case 'x': 416 417 case 'X': -
uspace/lib/trackmod/trackmod.c
rae7d03c re8975278 62 62 63 63 /** Table for finetune computation. 64 *65 * Finetune is a number ft in [-8 .. 7]. The pitch should be adjusted by66 * ft/8 semitones. To adjust pitch by 1/8 semitone down we can mutiply the67 * period by 2^(1/12/8) =. 1.0072, one semitone up: 2^-(1/12/8) =. 0.9928,68 * to adjust by ft/8 semitones, multiply by 2^(-ft/12/8).69 *70 * finetune_factor[ft] := 10000 * 2^(-ft/12/8)71 * res_period = clip(period * fineture_factor[ft+8] / 10000)72 */64 * 65 * Finetune is a number ft in [-8 .. 7]. The pitch should be adjusted by 66 * ft/8 semitones. To adjust pitch by 1/8 semitone down we can mutiply the 67 * period by 2^(1/12/8) =. 1.0072, one semitone up: 2^-(1/12/8) =. 0.9928, 68 * to adjust by ft/8 semitones, multiply by 2^(-ft/12/8). 69 * 70 * finetune_factor[ft] := 10000 * 2^(-ft/12/8) 71 * res_period = clip(period * fineture_factor[ft+8] / 10000) 72 */ 73 73 static unsigned finetune_factor[16] = { 74 74 10595, 10518, 10443, 10368, 10293, 10219, 10145, 10072, … … 731 731 } 732 732 733 /* if (np < period_min) 733 #if 0 734 /* XXX */ 735 if (np < period_min) 734 736 np = period_min; 735 737 if (np > period_max) 736 738 np = period_max; 737 */ 739 #endif 738 740 modplay->chan[i].period = np; 739 741 } -
uspace/lib/trackmod/types/trackmod.h
rae7d03c re8975278 153 153 int vol_slide; 154 154 /** Portamento amount (positive for tone and up portamento, 155 * negative for down portamento. */155 * negative for down portamento. */ 156 156 int portamento; 157 157 /** Tone portamento target period. */
Note:
See TracChangeset
for help on using the changeset viewer.
